#ifndef TABLEDELEGATE_H
#define TABLEDELEGATE_H

#include <QObject>
#include <QStyledItemDelegate>
class TableDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    TableDelegate(QWidget* parent);
    ~TableDelegate()=default;
    QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE;
    void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const Q_DECL_OVERRIDE;
};

#endif // TABLEDELEGATE_H
